package com.sayyi.demo.test.common;

import lombok.Getter;

/**
 * @author xuchuang
 * date 2021/12/23 3:50 PM
 */
@Getter
public enum ResultStatus {

    /** 请求成功 */
    SUCCESS("200", "success"),
    /** 系统内部异常 */
    ERROR("500", "fail"),

    ADMIN_CANT_REMOVE("501", "管理员用户不能被删除");

    /** 编码 */
    private final String code;
    /** 提示信息 */
    private final String msg;
    ResultStatus(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
